<!--  -->
<template>
    <view class="sbyj">
        <u-list @scrolltolower="scrolltolower" class="sbyj_list">
            <u-list-item v-for="(item, index) in list" :key="index">
                <view class="list-item">
                    <view class="list-item-displayName"
                        >单元：{{ item.displayName }}</view
                    >
                    <view class="list-item-deviceName">设备：{{ item.deviceName }}</view>
                    <view class="list-item-deviceName">{{ item.createTime }}</view>
                    <view class="list-item-warningInfo"
                        >预警信息：<text style="color: red">{{
                            item.warningInfo
                        }}</text></view
                    >
                </view>
                <u-line></u-line>
            </u-list-item>
        </u-list>
    </view>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
    //import引入的组件需要注入到对象中才能使用
    components: {},
    data() {
        //这里存放数据
        return {
            list: [
                {
                    id: 107066,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(29)",
                    createTime: "2024-11-24 21:44",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107067,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(24)",
                    createTime: "2024-11-24 21:44",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107068,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(21)",
                    createTime: "2024-11-24 22:44",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107069,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(24)",
                    createTime: "2024-11-24 21:44",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107070,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(27)",
                    createTime: "2024-11-24 23:44",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107071,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(25)",
                    createTime: "2024-11-24 23:49",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107072,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(24)",
                    createTime: "2024-11-24 23:50",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107073,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 607,
                    deviceName: "土壤湿度",
                    warningInfo: "温度传感器处于异常状态 “传感器预警”，低于正常值(23)",
                    createTime: "2024-11-24 23:55",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107074,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(34.5)",
                    createTime: "2025-02-20 00:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107075,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(34.6)",
                    createTime: "2025-02-20 01:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107076,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(34.5)",
                    createTime: "2025-02-21 00:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107077,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(34.7)",
                    createTime: "2025-02-21 01:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107078,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(34.5)",
                    createTime: "2025-02-22 00:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107079,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(34.4)",
                    createTime: "2025-02-22 01:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107080,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(33.6)",
                    createTime: "2025-02-23 00:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107081,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，高于设定值(33.5)",
                    createTime: "2025-02-23 01:09",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107082,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(0.6)",
                    createTime: "2025-02-24 00:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107083,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(0.5)",
                    createTime: "2025-02-24 01:08",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107084,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(0.3)",
                    createTime: "2025-02-25 00:09",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107085,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(0.4)",
                    createTime: "2025-02-25 01:09",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107086,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(0.2)",
                    createTime: "2025-02-26 00:09",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107087,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(0.2)",
                    createTime: "2025-02-26 01:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107088,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(10.2)",
                    createTime: "2025-02-28 00:09",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107089,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(10.0)",
                    createTime: "2025-02-28 01:09",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107090,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 00:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107091,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 00:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107092,
                    companyId: 77,
                    areaId: 95,
                    displayName: "监控系统测试",
                    deviceId: 641,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 01:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107093,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 01:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107094,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 01:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107095,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 01:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107096,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 01:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107097,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 02:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107098,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.4)",
                    createTime: "2025-03-03 02:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107099,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 02:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107100,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 02:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107101,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 03:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107102,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 03:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107103,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 03:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107104,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 03:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107105,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 04:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107106,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 04:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107107,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 04:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107108,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.2)",
                    createTime: "2025-03-03 04:40",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107109,
                    companyId: 77,
                    areaId: 141,
                    displayName: "灌溉系统",
                    deviceId: 1011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.3)",
                    createTime: "2025-03-03 05:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
                {
                    id: 107110,
                    companyId: 77,
                    areaId: 142,
                    displayName: "环境监测系",
                    deviceId: 2011,
                    deviceName: "土壤湿度",
                    warningInfo: "土壤湿度处于异常状态 “传感器预警”，低于正常值(6.3)",
                    createTime: "2025-03-03 05:10",
                    sourceType: "0",
                    warningType: "0",
                    dealFLag: 0,
                },
            ],
        };
    },

    onLoad(options) {},
    onShow() {},
    methods: {},
};
</script>
<style lang="scss" scoped>
page {
    background-color: #fff;
}
.sbyj_list {
    background-color: #fff;
    padding: 0 20rpx;
    box-sizing: border-box;
    color: #666;
    .list-item-displayName {
        font-size: 34rpx;
        font-weight: 700;
        margin-top: 20rpx;
    }
    .list-item-deviceName {
        margin-top: 40rpx;
    }
    .list-item-warningInfo {
        margin: 40rpx 0;
    }
}
</style>
